<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/29
 * Time: 9:10
 */
namespace app\index\controller;


use think\Controller;
use think\Db;

class Brand extends Controller{
    public function brand(){
        $bigpowerarr=Db::view("brand_fu","brandfu_list,brandfu_id")
            ->select();
        //dump($bigpowerarr);
        $smallpowerarr=Db::view("brand_fu","brandfu_list,brandfu_id")
            ->view("brand_zi","brandzi_list,brandzi_state,brandfu_id","brand_fu.brandfu_id=brand_zi.brandfu_id")
            ->select();
       // dump($smallpowerarr);
      $this->assign("bigpowerarr",$bigpowerarr);
      $this->assign("smallpowerarr",$smallpowerarr);

       return $this->fetch();
    }
}
